# $Id: PKGBUILD 86692 2013-03-21 10:51:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-crypt-cbc
pkgver=2.32
pkgrel=1
pkgdesc="Cipherblock chaining for Crypt::DES/IDEA"
arch=('any')
depends=('perl')
url="http://search.cpan.org/dist/Crypt-CBC"
license=('GPL' 'PerlArtistic')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/L/LD/LDS/Crypt-CBC-$pkgver.tar.gz)
md5sums=('b381b81cc89a36b1445b627916c666ce')

build() {
  cd  $srcdir/Crypt-CBC-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Crypt-CBC-$pkgver
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
